package com.zhisheng.gufei.web.action.city;

import javax.annotation.Resource;

import net.sf.json.JSONArray;

import com.demo2do.lighturl.annotation.Action;
import com.zhisheng.core.web.action.BaseAction;
import com.zhisheng.gufei.city.service.CityService;

public class CityAction extends BaseAction{

	/**
	 * 
	 */
	private static final long serialVersionUID = 4191718993979036443L;
    
	@Resource
	private CityService cityService;
	
	private String citydatas="";
	
	@Action("/city/list")
	public String list() throws Exception{
		JSONArray jsonObject = JSONArray.fromObject(cityService.getCityNodeList(cityService.getOriginCity()));
		citydatas = jsonObject.toString();
		return "list";
	}

	public String getCitydatas() {
		return citydatas;
	}

	public void setCitydatas(String citydatas) {
		this.citydatas = citydatas;
	}
	
}
